#!/bin/sh
JARDIR=/home/gravano/Classes/E6111_s10/Html/Proj2/jars
JAVACLASSPATH=$JARDIR/pirot.jar:$JARDIR/project2.jar

if [ $# -lt 4 -o $# -gt 4 -o "$1" = "-?" ]
then
	echo
	echo "Usage: "
	echo "project2.sh <host> <t_es> <t_ec> <yahoo key>"
	exit 1
fi

DATADIR=/home/gravano/Classes/E6111_s10/Html/Proj2/data/

cp $DATADIR/hierarchy.txt .
cp $DATADIR/root.txt .
cp $DATADIR/computers.txt .
cp $DATADIR/sports.txt .
cp $DATADIR/health.txt .

/usr/bin/java -mx1600m -classpath $JAVACLASSPATH project2.Classify $1 $2 $3 $4

rm hierarchy.txt
rm root.txt
rm computers.txt
rm sports.txt
rm health.txt 



